package com.isorf.mapper;

import com.isorf.pojo.users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface usermapper {



    @Select("select* from users")
    List<users> userList();

    // ✅ 修复后代码（第18行）
    @Update("update users set disable = 1 - disable where id = #{id}")    int updateDisable(int id);

    @Select("select * from users order by id")
    List<users> pageList();
}
